Infix and Postfix
1. What is the correct precedence order for the operators used in this experiment?
2. During infix-to-postfix conversion using a stack, where are pending operators temporarily stored?
3. When an operand is encountered while converting an infix expression to postfix, what is normally done with it?
4. When an operator is read, why may operators already on the stack be popped before the new operator is pushed?
5. What is done when a left parenthesis is encountered during stack-based conversion?
6. What is the role of a right parenthesis during infix-to-postfix conversion?
7. For the infix expression , what postfix expression should a correct stack-based conversion produce?
8. In a standard stack-based infix-to-postfix algorithm, what should happen to the remaining operators after the entire input expression has been scanned?
9. What is the time complexity of scanning an infix expression of tokens using a standard stack-based conversion algorithm, assuming each token is pushed and popped at most a constant number of times?